package com.lemner.ke.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lemner.ke.R;
import com.lemner.ke.bean.RichClassifyBean;

public class LibraryRightAdapter extends BaseQuickAdapter<RichClassifyBean,BaseViewHolder>{

    public LibraryRightAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, RichClassifyBean item) {
        if (item!=null){
            if (item.getTitle()!=null){
                helper.setText(R.id.tv_title,item.getTitle());
            }
            helper.setText(R.id.tv_num,"共"+item.getCountnum()+"课");
        }
    }
}
